using System;
using System.Xml;
using System.Data;
using System.Web;

namespace AliCMS
{
    public abstract class XmlObjectBase : ObjectBase
    {
        public XmlObjectBase(int instanceID, string lang, bool checkRight)
            : base(instanceID, lang, checkRight)
		{
		}

		public override void Dispose()
		{
			_xmlDoc = null;
		}

		#region Properties
		protected virtual XmlDocument XmlDoc
		{
			get
            {
				if (_xmlDoc == null)
				{
					_xmlDoc = new XmlDocument();
					_xmlDoc.XmlResolver = null;
				}

                return _xmlDoc;
            }
		}
		#endregion

		#region Fields
		private XmlDocument _xmlDoc;
		#endregion
	}
}
